package cate.game.play.skill.passive.god;

import cate.common.table.d.GDAttr;
import cate.game.attr.FightAttr;
import cate.game.play.config.PlayCfgArgs;
import cate.game.play.proce.action.ctx.ActionCtx;
import cate.game.play.skill.passive.PassiveHandler;

/**
 * 对应阵营元素攻击提升1500点
 */
public class 自然之力PH extends PassiveHandler {

	private double 提升值;

	//提升值=1500
	@Override
	public void parse(String code) {
		PlayCfgArgs args = new PlayCfgArgs(code);
		提升值 = args.getDouble("提升值", 0d);
	}

	@Override
	public void onFirstEnter(ActionCtx action) {
		byte attr = GDAttr.getElementAtt(skill.owner.getCamp());
		if (attr > 0) {
			skill.owner.attr.addAttr(new FightAttr(attr, 提升值));
		}
	}
}
